from django.db import models
from django.contrib.auth.models import AbstractUser

# Create your models here.


class LuffyUserModel(AbstractUser):
    """路飞商城用户模型"""
    mobile = models.CharField(max_length=11, verbose_name="手机号", unique=True)
    avatar = models.ImageField(
        upload_to="avatar/", default="avatar/default.png", verbose_name="头像")

    class Meta:
        verbose_name = "用户"
        verbose_name_plural = "全部用户"
